﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MINERP.BLL.InfoConfig;
using MINERP.MODEL.FoundationModel;

namespace MINERP.InfoConfig
{
    public partial class FrmNewProductOutShop : Form
    {
        public FrmNewProductOutShop()
        {
            InitializeComponent();
        }
        public delegate void SendMessage(OutProcessShop_Info outShop);
        public  event SendMessage SendOutShop;
        ProductBLL _bll = new ProductBLL();
        private void FrmNewProductOutShop_Load(object sender, EventArgs e)
        {
            List<OutProcessShop_Info> listShop = _bll.GetAllOutShop();
            comboBoxOutShop.DisplayMember = "OutShopName";
            comboBoxOutShop.ValueMember = "OutShopId";
            comboBoxOutShop.DataSource = listShop;
        }

        private void comboBoxOutShop_SelectedIndexChanged(object sender, EventArgs e)
        {
            OutProcessShop_Info selectShop=(OutProcessShop_Info)comboBoxOutShop.SelectedItem;
            if (selectShop != null)
            {
                SendOutShop(selectShop);
               
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }


        
    }
}
